from django.db import models

class Poem(models.Model):
  """
  A single poem.
  
  >>> poem = Poem(author='William Butler Yeats', title='The Second Coming', year_of_publication=1920, text='And what rough beast, its hour come round at last / Slouches towards Bethlehem to be born?')
  >>> poem.author
  'William Butler Yeats'
  >>> poem.title
  'The Second Coming'
  >>> poem.year_of_publication
  1920
  >>> poem.text
  'And what rough beast, its hour come round at last / Slouches towards Bethlehem to be born?'
  """
  author = models.CharField(maxlength=255)
  title = models.CharField(maxlength=255)
  year_of_publication = models.IntegerField()
  text = models.TextField()